$.jfeC.addAdapter('default', {
  /*
     * todo:
     * don't know if this CRUD without R thing works here.
     * anyway it has to be much more flexible than it is.
     * we'll know more about this if there are some
     * editors ready.
     */
    name: "default",
    'create': function(data, options, jfeCSettings) {
        var postData = {
            'requestType': 'ajax'
        };
        $.extend(postData, data.data);
        return {
            url:  jfeCSettings.baseURL + '/' + options.controller + '/create',
            data: postData
        };
    },
    'update': function(data, options, jfeCSettings) {
        var postData = {
            'requestType': 'ajax'
        };
        $.extend(postData, data.data);
        return {
            url:  jfeCSettings.baseURL + '/' + options.controller + '/edit',
            data: postData
        };
    },
    'delete': function(data, options, jfeCSettings) {
        var postData = {
            'requestType': 'ajax'
        };

        $.extend(postData, data.data);

        return {
            url:  jfeCSettings.baseURL + '/' + options.controller + '/delete/'+data.id,
            data: postData
        };
    },
    'blobUpload': function(data, options, jfeCSettings) {
        var formData = new FormData();

        $.each(data.files, function() {
            formData.append("images[]", this);
        });
        return {
            url:  jfeCSettings.baseURL + '/' + options.controller + '/upload/',
            formDataObject: formData
        };
    },
    'isSuccess': function(response) {
        var qData = $.parseJSON(response);
        if (!qData['error']) return true;
        return false;
    }
});